package test.transferFile.common;

import org.apache.mina.core.buffer.IoBuffer;

public class MyFile {

  private String name;

  private int length;

  private int pos;

  private IoBuffer data;

  public String getName() {
    return name;
  }

  public void setName(String name) {
    this.name=name;
  }

  public int getLength() {
    return length;
  }

  public void setLength(int length) {
    this.length=length;
  }

  public int getPos() {
    return pos;
  }

  public void setPos(int pos) {
    this.pos=pos;
  }

  public void setData(IoBuffer data) {
    this.data=data;
  }

  public IoBuffer getData() {
    return data;
  }

  @Override
  public String toString() {
    return "[MyFile] [data=" + data + "&length=" + length + "&name=" + name + "&pos=" + pos + "]";
  }
}
